package com.atguigu.srb.core.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import java.time.LocalDateTime;
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CooperationTable对象",description = "社团合作信息表")
public class CooperationTable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "合作ID", required = true)
    @TableId(value = "cooperation_id", type = IdType.AUTO)
    private int cooperationId;

    @ApiModelProperty(value = "发起合作的社团编号", required = true)
    private int clubANumber;

    @ApiModelProperty(value = "回应合作的社团编号", required = true)
    private int clubBNumber;

    @ApiModelProperty(value = "合作项目名称", required = true)
    private String projectName;

    @ApiModelProperty(value = "合作描述")
    private String description;

    @ApiModelProperty(value = "合作开始日期", required = true)
    private Date startDate;

    @ApiModelProperty(value = "合作结束日期")
    private Date endDate;

    @ApiModelProperty(value = "合作状态（待确认，已接受，不接受）", required = true)
    private String status;

    @ApiModelProperty(value = "创建时间", required = true)
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "删除标记（0:不可用 1:可用）")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;
}
